package org.phantom.demo.search.queuetest;

public class Data1 implements DataLevel,Comparable<DataLevel>{

	
	private String id;
	private int level=1;
	@Override
	public int compareTo(DataLevel o) {
		return this.getLevel()>o.getLevel()?1:this.getLevel()<o.getLevel()?-1:0;
	}

	@Override
	public int getLevel() {
		return 1;
	}
	@Override
	public String toString() {
		return "I'm data1";
	}

	public void setLevel(int level){
		this.level = level;
	}
}
